// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_pr.p_activity;

import android.content.DialogInterface;
import android.webkit.URLUtil;
import android.widget.BaseAdapter;
import com.nnee.p_g.cls_b;
import com.nnee.p_pr.p_atom.cls_g;
import com.nnee.p_pr.p_atom.cls_u;
import com.nnee.p_pr.p_d.cls_c;

// Referenced classes of package com.nnee.p_pr.p_activity:
//            FavoriteListActivity, ArticleGalleryActivity

class cls_bh
    implements android.content.DialogInterface.OnClickListener
{

	cls_bh(cls_FavoriteListActivity favoritelistactivity)
    {
		super();
        a = favoritelistactivity;
        
    }

    public void onClick(DialogInterface dialoginterface, int i)
    {
        String s;
        Object obj;
        s = null;
        if(cls_FavoriteListActivity.a(a) >= com.nnee.p_pr.p_activity.cls_FavoriteListActivity.b(a).getCount())
        {
        	cls_b.d("FavoriteListActivity", "out of bound of mBaseAdapter");
            obj = s;
        } else
        {
            obj = (cls_u)com.nnee.p_pr.p_activity.cls_FavoriteListActivity.b(a).getItem(cls_FavoriteListActivity.a(a));
            if(obj != null)
            {
                String s1 = ((cls_u) (obj)).b(cls_g.bEAlernate);
                if(s1 != null)
                    if(!URLUtil.isNetworkUrl(s1))
                        s = (new StringBuilder()).append("http://easyread.163.com").append(s1).toString();
                    else
                        s = s1;
            }
        }
        switch(i)
        {
        case 0:
        	if(s != null)
            {
                cls_ArticleGalleryActivity.a(com.nnee.p_pr.p_activity.cls_FavoriteListActivity.c(a), s, cls_FavoriteListActivity.d(a), cls_FavoriteListActivity.a(a), 256);
                cls_c.a(a.p(), 1650);
            }
        	break;
        case 1:
        	 cls_FavoriteListActivity.e(a);
             cls_c.a(a.p(), 1651, ((cls_u) (obj)).U());
        	break;
        default:
        	break;
        }
    
        dialoginterface.dismiss();
        return;
 
    }

    final cls_FavoriteListActivity a;
}
